<?php

namespace App\Exceptions;

class PaymentException extends BaseException
{
    const CODE_1001 = 1001;
    const CODE_1002 = 1002;
    const CODE_1003 = 1003;
    const CODE_1004 = 1004;
    const CODE_1005 = 1005;

    protected int $baseCode = self::BASE_CODE_OF_PAYMENT;    //

    protected array $showMsg = [
        self::CODE_1001 => '订单类型错误',
        self::CODE_1002 => '不是自己的订单',
        self::CODE_1003 => '暂不支持此平台支付方式',
        self::CODE_1004 => '订单不存在',
        self::CODE_1005 => '支付订单不存在'
    ];

    function __construct($msg = '', $code = 0)
    {
        parent::__construct($msg, $code);
    }
}
